#include <iostream>
class CPolygon
{
 protected:
      int width, height;
public:
      void setValues (int a, int b);
};

class COutput 
{
       public:
       void writeln(int i);
};

class CRectangle: public CPolygon, public COutput 
{
public:
      int area ();
};

class CTriangle: public CPolygon, public COutput
{
public:
      int area ();
};
